<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-pragma">{-# LANGUAGE CPP #-}</span><span>
</span><span id="line-2"></span><span class="hs-pragma">{-# LANGUAGE GeneralizedNewtypeDeriving #-}</span><span>
</span><span id="line-3"></span><span>
</span><span id="line-4"></span><span class="hs-comment">-- | Free regs map for SPARC</span><span>
</span><span id="line-5"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">GHC.CmmToAsm.Reg.Linear.SPARC</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-6"></span><span>
</span><span id="line-7"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Prelude.html"><span class="hs-identifier">GHC.Prelude</span></a></span><span>
</span><span id="line-8"></span><span>
</span><span id="line-9"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.SPARC.Regs.html"><span class="hs-identifier">GHC.CmmToAsm.SPARC.Regs</span></a></span><span>
</span><span id="line-10"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Platform.Reg.Class.html"><span class="hs-identifier">GHC.Platform.Reg.Class</span></a></span><span>
</span><span id="line-11"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Platform.Reg.html"><span class="hs-identifier">GHC.Platform.Reg</span></a></span><span>
</span><span id="line-12"></span><span>
</span><span id="line-13"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Platform.Regs.html"><span class="hs-identifier">GHC.Platform.Regs</span></a></span><span>
</span><span id="line-14"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html"><span class="hs-identifier">GHC.Utils.Outputable</span></a></span><span>
</span><span id="line-15"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../ghc-boot/src/GHC.Platform.html#"><span class="hs-identifier">GHC.Platform</span></a></span><span>
</span><span id="line-16"></span><span>
</span><span id="line-17"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Word.html#"><span class="hs-identifier">Data.Word</span></a></span><span>
</span><span id="line-18"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Bits.html#"><span class="hs-identifier">Data.Bits</span></a></span><span>
</span><span id="line-19"></span><span>
</span><span id="line-20"></span><span>
</span><span id="line-21"></span><span class="hs-comment">--------------------------------------------------------------------------------</span><span>
</span><span id="line-22"></span><span class="hs-comment">-- SPARC is like PPC, except for twinning of floating point regs.</span><span>
</span><span id="line-23"></span><span class="hs-comment">--      When we allocate a double reg we must take an even numbered</span><span>
</span><span id="line-24"></span><span class="hs-comment">--      float reg, as well as the one after it.</span><span>
</span><span id="line-25"></span><span>
</span><span id="line-26"></span><span>
</span><span id="line-27"></span><span class="hs-comment">-- Holds bitmaps showing what registers are currently allocated.</span><span>
</span><span id="line-28"></span><span class="hs-comment">--      The float and double reg bitmaps overlap, but we only alloc</span><span>
</span><span id="line-29"></span><span class="hs-comment">--      float regs into the float map, and double regs into the double map.</span><span>
</span><span id="line-30"></span><span class="hs-comment">--</span><span>
</span><span id="line-31"></span><span class="hs-comment">--      Free regs have a bit set in the corresponding bitmap.</span><span>
</span><span id="line-32"></span><span class="hs-comment">--</span><span>
</span><span id="line-33"></span><span class="hs-keyword">data</span><span> </span><span id="FreeRegs"><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-var">FreeRegs</span></a></span></span><span>
</span><span id="line-34"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span id="FreeRegs"><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-var">FreeRegs</span></a></span></span><span>
</span><span id="line-35"></span><span>                </span><span class="hs-glyph">!</span><span class="annot"><a href="../../base/src/GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span>         </span><span class="hs-comment">-- int    reg bitmap    regs  0..31</span><span>
</span><span id="line-36"></span><span>                </span><span class="hs-glyph">!</span><span class="annot"><a href="../../base/src/GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span>         </span><span class="hs-comment">-- float  reg bitmap    regs 32..63</span><span>
</span><span id="line-37"></span><span>                </span><span class="hs-glyph">!</span><span class="annot"><a href="../../base/src/GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span>         </span><span class="hs-comment">-- double reg bitmap    regs 32..63</span><span>
</span><span id="line-38"></span><span>
</span><span id="line-39"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621681008235"><span id="local-6989586621681008238"><span class="annot"><a href="../../base/src/GHC.Show.html#Show"><span class="hs-identifier hs-type">Show</span></a></span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-type">FreeRegs</span></a></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-40"></span><span>        </span><span id="local-6989586621681008233"><span class="annot"><span class="annottext">show :: FreeRegs -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var hs-var hs-var hs-var">show</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FreeRegs -&gt; String
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#showFreeRegs"><span class="hs-identifier hs-var">showFreeRegs</span></a></span><span>
</span><span id="line-41"></span><span>
</span><span id="line-42"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621681008228"><span class="annot"><a href="GHC.Utils.Outputable.html#Outputable"><span class="hs-identifier hs-type">Outputable</span></a></span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-type">FreeRegs</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-43"></span><span>        </span><span id="local-6989586621681008226"><span class="annot"><span class="annottext">ppr :: FreeRegs -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var hs-var hs-var hs-var">ppr</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">(String -&gt; SDoc) -&gt; (FreeRegs -&gt; String) -&gt; FreeRegs -&gt; SDoc
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">FreeRegs -&gt; String
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#showFreeRegs"><span class="hs-identifier hs-var">showFreeRegs</span></a></span><span>
</span><span id="line-44"></span><span>
</span><span id="line-45"></span><span class="hs-comment">-- | A reg map where no regs are free to be allocated.</span><span>
</span><span id="line-46"></span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#noFreeRegs"><span class="hs-identifier hs-type">noFreeRegs</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-type">FreeRegs</span></a></span><span>
</span><span id="line-47"></span><span id="noFreeRegs"><span class="annot"><span class="annottext">noFreeRegs :: FreeRegs
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#noFreeRegs"><span class="hs-identifier hs-var hs-var">noFreeRegs</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32 -&gt; FreeRegs
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-var">FreeRegs</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">0</span></span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">0</span></span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">0</span></span><span>
</span><span id="line-48"></span><span>
</span><span id="line-49"></span><span>
</span><span id="line-50"></span><span class="hs-comment">-- | The initial set of free regs.</span><span>
</span><span id="line-51"></span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#initFreeRegs"><span class="hs-identifier hs-type">initFreeRegs</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-boot/src/GHC.Platform.html#Platform"><span class="hs-identifier hs-type">Platform</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-type">FreeRegs</span></a></span><span>
</span><span id="line-52"></span><span id="initFreeRegs"><span class="annot"><span class="annottext">initFreeRegs :: Platform -&gt; FreeRegs
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#initFreeRegs"><span class="hs-identifier hs-var hs-var">initFreeRegs</span></a></span></span><span> </span><span id="local-6989586621681008220"><span class="annot"><span class="annottext">Platform
</span><a href="#local-6989586621681008220"><span class="hs-identifier hs-var">platform</span></a></span></span><span>
</span><span id="line-53"></span><span> </span><span class="hs-glyph">=</span><span>      </span><span class="annot"><span class="annottext">(FreeRegs -&gt; RealReg -&gt; FreeRegs)
-&gt; FreeRegs -&gt; [RealReg] -&gt; FreeRegs
forall (t :: * -&gt; *) b a.
Foldable t =&gt;
(b -&gt; a -&gt; b) -&gt; b -&gt; t a -&gt; b
</span><a href="../../base/src/Data.Foldable.html#foldl%27"><span class="hs-identifier hs-var">foldl'</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">(RealReg -&gt; FreeRegs -&gt; FreeRegs)
-&gt; FreeRegs -&gt; RealReg -&gt; FreeRegs
forall a b c. (a -&gt; b -&gt; c) -&gt; b -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#flip"><span class="hs-identifier hs-var">flip</span></a></span><span> </span><span class="annot"><span class="annottext">((RealReg -&gt; FreeRegs -&gt; FreeRegs)
 -&gt; FreeRegs -&gt; RealReg -&gt; FreeRegs)
-&gt; (RealReg -&gt; FreeRegs -&gt; FreeRegs)
-&gt; FreeRegs
-&gt; RealReg
-&gt; FreeRegs
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Platform -&gt; RealReg -&gt; FreeRegs -&gt; FreeRegs
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#releaseReg"><span class="hs-identifier hs-var">releaseReg</span></a></span><span> </span><span class="annot"><span class="annottext">Platform
</span><a href="#local-6989586621681008220"><span class="hs-identifier hs-var">platform</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">FreeRegs
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#noFreeRegs"><span class="hs-identifier hs-var">noFreeRegs</span></a></span><span> </span><span class="annot"><span class="annottext">[RealReg]
</span><a href="GHC.CmmToAsm.SPARC.Regs.html#allocatableRegs"><span class="hs-identifier hs-var">allocatableRegs</span></a></span><span>
</span><span id="line-54"></span><span>
</span><span id="line-55"></span><span>
</span><span id="line-56"></span><span class="hs-comment">-- | Get all the free registers of this class.</span><span>
</span><span id="line-57"></span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#getFreeRegs"><span class="hs-identifier hs-type">getFreeRegs</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Platform.Reg.Class.html#RegClass"><span class="hs-identifier hs-type">RegClass</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-type">FreeRegs</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="GHC.Platform.Reg.html#RealReg"><span class="hs-identifier hs-type">RealReg</span></a></span><span class="hs-special">]</span><span>        </span><span class="hs-comment">-- lazily</span><span>
</span><span id="line-58"></span><span id="getFreeRegs"><span class="annot"><span class="annottext">getFreeRegs :: RegClass -&gt; FreeRegs -&gt; [RealReg]
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#getFreeRegs"><span class="hs-identifier hs-var hs-var">getFreeRegs</span></a></span></span><span> </span><span id="local-6989586621681008214"><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621681008214"><span class="hs-identifier hs-var">cls</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-type">FreeRegs</span></a></span><span> </span><span id="local-6989586621681008213"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008213"><span class="hs-identifier hs-var">g</span></a></span></span><span> </span><span id="local-6989586621681008212"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008212"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span id="local-6989586621681008211"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008211"><span class="hs-identifier hs-var">d</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-59"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.Platform.Reg.Class.html#RcInteger"><span class="hs-identifier hs-var">RcInteger</span></a></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621681008214"><span class="hs-identifier hs-var">cls</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(RegNo -&gt; RealReg) -&gt; [RegNo] -&gt; [RealReg]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="../../base/src/GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RealReg
</span><a href="GHC.Platform.Reg.html#RealRegSingle"><span class="hs-identifier hs-var">RealRegSingle</span></a></span><span>                  </span><span class="annot"><span class="annottext">([RegNo] -&gt; [RealReg]) -&gt; [RegNo] -&gt; [RealReg]
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; Word32 -&gt; Word32 -&gt; RegNo -&gt; [RegNo]
forall {a}. (Num a, Bits a) =&gt; RegNo -&gt; a -&gt; a -&gt; RegNo -&gt; [RegNo]
</span><a href="#local-6989586621681008208"><span class="hs-identifier hs-var">go</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">1</span></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008213"><span class="hs-identifier hs-var">g</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">1</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">0</span></span><span>
</span><span id="line-60"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.Platform.Reg.Class.html#RcFloat"><span class="hs-identifier hs-var">RcFloat</span></a></span><span>   </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621681008214"><span class="hs-identifier hs-var">cls</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(RegNo -&gt; RealReg) -&gt; [RegNo] -&gt; [RealReg]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="../../base/src/GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RealReg
</span><a href="GHC.Platform.Reg.html#RealRegSingle"><span class="hs-identifier hs-var">RealRegSingle</span></a></span><span>                  </span><span class="annot"><span class="annottext">([RegNo] -&gt; [RealReg]) -&gt; [RegNo] -&gt; [RealReg]
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; Word32 -&gt; Word32 -&gt; RegNo -&gt; [RegNo]
forall {a}. (Num a, Bits a) =&gt; RegNo -&gt; a -&gt; a -&gt; RegNo -&gt; [RegNo]
</span><a href="#local-6989586621681008208"><span class="hs-identifier hs-var">go</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">1</span></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008212"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">1</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">32</span></span><span>
</span><span id="line-61"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.Platform.Reg.Class.html#RcDouble"><span class="hs-identifier hs-var">RcDouble</span></a></span><span>  </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621681008214"><span class="hs-identifier hs-var">cls</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(RegNo -&gt; RealReg) -&gt; [RegNo] -&gt; [RealReg]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="../../base/src/GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-glyph">\</span><span id="local-6989586621681008205"><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008205"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RealReg
</span><a href="GHC.Platform.Reg.html#RealRegPair"><span class="hs-identifier hs-var">RealRegPair</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008205"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008205"><span class="hs-identifier hs-var">i</span></a></span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">1</span></span><span class="hs-special">)</span><span class="hs-special">)</span><span>    </span><span class="annot"><span class="annottext">([RegNo] -&gt; [RealReg]) -&gt; [RegNo] -&gt; [RealReg]
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; Word32 -&gt; Word32 -&gt; RegNo -&gt; [RegNo]
forall {a}. (Num a, Bits a) =&gt; RegNo -&gt; a -&gt; a -&gt; RegNo -&gt; [RegNo]
</span><a href="#local-6989586621681008208"><span class="hs-identifier hs-var">go</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">2</span></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008211"><span class="hs-identifier hs-var">d</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">1</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">32</span></span><span class="hs-cpp">
#if __GLASGOW_HASKELL__ &lt;= 810
</span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="hs-identifier">otherwise</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">pprPanic</span><span> </span><span class="hs-string">&quot;RegAllocLinear.getFreeRegs: Bad register class &quot;</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">ppr</span><span> </span><span class="hs-identifier">cls</span><span class="hs-special">)</span><span class="hs-cpp">
#endif
</span><span>        </span><span class="hs-keyword">where</span><span>
</span><span id="line-66"></span><span>                </span><span id="local-6989586621681008208"><span class="annot"><span class="annottext">go :: RegNo -&gt; a -&gt; a -&gt; RegNo -&gt; [RegNo]
</span><a href="#local-6989586621681008208"><span class="hs-identifier hs-var hs-var">go</span></a></span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-identifier">_</span></span><span>    </span><span class="annot"><span class="annottext">a
</span><span class="hs-identifier">_</span></span><span>      </span><span class="annot"><span class="annottext">a
</span><span class="hs-number">0</span></span><span>    </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-identifier">_</span></span><span>
</span><span id="line-67"></span><span>                        </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><span id="line-68"></span><span>
</span><span id="line-69"></span><span>                </span><span class="annot"><a href="#local-6989586621681008208"><span class="hs-identifier hs-var">go</span></a></span><span> </span><span id="local-6989586621681008189"><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008189"><span class="hs-identifier hs-var">step</span></a></span></span><span> </span><span id="local-6989586621681008188"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621681008188"><span class="hs-identifier hs-var">bitmap</span></a></span></span><span> </span><span id="local-6989586621681008187"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621681008187"><span class="hs-identifier hs-var">mask</span></a></span></span><span> </span><span id="local-6989586621681008186"><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008186"><span class="hs-identifier hs-var">ix</span></a></span></span><span>
</span><span id="line-70"></span><span>                        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621681008188"><span class="hs-identifier hs-var">bitmap</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; a -&gt; a
forall a. Bits a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#.%26."><span class="hs-operator hs-var">.&amp;.</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621681008187"><span class="hs-identifier hs-var">mask</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; a -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">/=</span></span><span> </span><span class="annot"><span class="annottext">a
</span><span class="hs-number">0</span></span><span>
</span><span id="line-71"></span><span>                        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008186"><span class="hs-identifier hs-var">ix</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; [RegNo] -&gt; [RegNo]
forall a. a -&gt; [a] -&gt; [a]
</span><span class="hs-glyph hs-var">:</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegNo -&gt; a -&gt; a -&gt; RegNo -&gt; [RegNo]
</span><a href="#local-6989586621681008208"><span class="hs-identifier hs-var">go</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008189"><span class="hs-identifier hs-var">step</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621681008188"><span class="hs-identifier hs-var">bitmap</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621681008187"><span class="hs-identifier hs-var">mask</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; RegNo -&gt; a
forall a. Bits a =&gt; a -&gt; RegNo -&gt; a
</span><a href="../../base/src/Data.Bits.html#shiftL"><span class="hs-operator hs-var">`shiftL`</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008189"><span class="hs-identifier hs-var">step</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">(RegNo -&gt; [RegNo]) -&gt; RegNo -&gt; [RegNo]
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24%21"><span class="hs-operator hs-var">$!</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008186"><span class="hs-identifier hs-var">ix</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008189"><span class="hs-identifier hs-var">step</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-72"></span><span>
</span><span id="line-73"></span><span>                        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>
</span><span id="line-74"></span><span>                        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; a -&gt; a -&gt; RegNo -&gt; [RegNo]
</span><a href="#local-6989586621681008208"><span class="hs-identifier hs-var">go</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008189"><span class="hs-identifier hs-var">step</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621681008188"><span class="hs-identifier hs-var">bitmap</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621681008187"><span class="hs-identifier hs-var">mask</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; RegNo -&gt; a
forall a. Bits a =&gt; a -&gt; RegNo -&gt; a
</span><a href="../../base/src/Data.Bits.html#shiftL"><span class="hs-operator hs-var">`shiftL`</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008189"><span class="hs-identifier hs-var">step</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">(RegNo -&gt; [RegNo]) -&gt; RegNo -&gt; [RegNo]
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24%21"><span class="hs-operator hs-var">$!</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008186"><span class="hs-identifier hs-var">ix</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008189"><span class="hs-identifier hs-var">step</span></a></span><span>
</span><span id="line-75"></span><span>
</span><span id="line-76"></span><span>
</span><span id="line-77"></span><span class="hs-comment">-- | Grab a register.</span><span>
</span><span id="line-78"></span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#allocateReg"><span class="hs-identifier hs-type">allocateReg</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-boot/src/GHC.Platform.html#Platform"><span class="hs-identifier hs-type">Platform</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Platform.Reg.html#RealReg"><span class="hs-identifier hs-type">RealReg</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-type">FreeRegs</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-type">FreeRegs</span></a></span><span>
</span><span id="line-79"></span><span id="allocateReg"><span class="annot"><span class="annottext">allocateReg :: Platform -&gt; RealReg -&gt; FreeRegs -&gt; FreeRegs
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#allocateReg"><span class="hs-identifier hs-var hs-var">allocateReg</span></a></span></span><span> </span><span id="local-6989586621681008180"><span class="annot"><span class="annottext">Platform
</span><a href="#local-6989586621681008180"><span class="hs-identifier hs-var">platform</span></a></span></span><span>
</span><span id="line-80"></span><span>         </span><span id="local-6989586621681008179"><span class="annot"><span class="annottext">reg :: RealReg
</span><a href="#local-6989586621681008179"><span class="hs-identifier hs-var">reg</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Platform.Reg.html#RealRegSingle"><span class="hs-identifier hs-type">RealRegSingle</span></a></span><span> </span><span id="local-6989586621681008178"><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008178"><span class="hs-identifier hs-var">r</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-81"></span><span>             </span><span class="hs-special">(</span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-type">FreeRegs</span></a></span><span> </span><span id="local-6989586621681008177"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008177"><span class="hs-identifier hs-var">g</span></a></span></span><span> </span><span id="local-6989586621681008176"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008176"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span id="local-6989586621681008175"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008175"><span class="hs-identifier hs-var">d</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-82"></span><span>
</span><span id="line-83"></span><span>        </span><span class="hs-comment">-- can't allocate free regs</span><span>
</span><span id="line-84"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool
</span><span class="hs-identifier hs-var">not</span></span><span> </span><span class="annot"><span class="annottext">(Bool -&gt; Bool) -&gt; Bool -&gt; Bool
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Platform -&gt; RegNo -&gt; Bool
</span><a href="GHC.Platform.Regs.html#freeReg"><span class="hs-identifier hs-var">freeReg</span></a></span><span> </span><span class="annot"><span class="annottext">Platform
</span><a href="#local-6989586621681008180"><span class="hs-identifier hs-var">platform</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008178"><span class="hs-identifier hs-var">r</span></a></span><span>
</span><span id="line-85"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc -&gt; FreeRegs
forall a. HasCallStack =&gt; String -&gt; SDoc -&gt; a
</span><a href="GHC.Utils.Outputable.html#pprPanic"><span class="hs-identifier hs-var">pprPanic</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;SPARC.FreeRegs.allocateReg: not allocating pinned reg&quot;</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RealReg -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">RealReg
</span><a href="#local-6989586621681008179"><span class="hs-identifier hs-var">reg</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-86"></span><span>
</span><span id="line-87"></span><span>        </span><span class="hs-comment">-- a general purpose reg</span><span>
</span><span id="line-88"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008178"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&lt;=</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">31</span></span><span>
</span><span id="line-89"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">let</span><span>   </span><span id="local-6989586621681008169"><span class="annot"><span class="annottext">mask :: Word32
</span><a href="#local-6989586621681008169"><span class="hs-identifier hs-var hs-var">mask</span></a></span></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32
forall a. Bits a =&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#complement"><span class="hs-identifier hs-var">complement</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegNo -&gt; Word32
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#bitMask"><span class="hs-identifier hs-var">bitMask</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008178"><span class="hs-identifier hs-var">r</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-90"></span><span>          </span><span class="hs-keyword">in</span><span>    </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32 -&gt; FreeRegs
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-var">FreeRegs</span></a></span><span>
</span><span id="line-91"></span><span>                        </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008177"><span class="hs-identifier hs-var">g</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32
forall a. Bits a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#.%26."><span class="hs-operator hs-var">.&amp;.</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008169"><span class="hs-identifier hs-var">mask</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-92"></span><span>                        </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008176"><span class="hs-identifier hs-var">f</span></a></span><span>
</span><span id="line-93"></span><span>                        </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008175"><span class="hs-identifier hs-var">d</span></a></span><span>
</span><span id="line-94"></span><span>
</span><span id="line-95"></span><span>        </span><span class="hs-comment">-- a float reg</span><span>
</span><span id="line-96"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008178"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&gt;=</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">32</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008178"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&lt;=</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">63</span></span><span>
</span><span id="line-97"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">let</span><span>   </span><span id="local-6989586621681008163"><span class="annot"><span class="annottext">mask :: Word32
</span><a href="#local-6989586621681008163"><span class="hs-identifier hs-var hs-var">mask</span></a></span></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32
forall a. Bits a =&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#complement"><span class="hs-identifier hs-var">complement</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegNo -&gt; Word32
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#bitMask"><span class="hs-identifier hs-var">bitMask</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008178"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">32</span></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-98"></span><span>
</span><span id="line-99"></span><span>                </span><span class="hs-comment">-- the mask of the double this FP reg aliases</span><span>
</span><span id="line-100"></span><span>                </span><span id="local-6989586621681008150"><span class="annot"><span class="annottext">maskLow :: Word32
</span><a href="#local-6989586621681008150"><span class="hs-identifier hs-var hs-var">maskLow</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">if</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008178"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Integral a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Real.html#mod"><span class="hs-operator hs-var">`mod`</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">2</span></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">0</span></span><span>
</span><span id="line-101"></span><span>                                </span><span class="hs-keyword">then</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32
forall a. Bits a =&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#complement"><span class="hs-identifier hs-var">complement</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegNo -&gt; Word32
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#bitMask"><span class="hs-identifier hs-var">bitMask</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008178"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">32</span></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-102"></span><span>                                </span><span class="hs-keyword">else</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32
forall a. Bits a =&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#complement"><span class="hs-identifier hs-var">complement</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegNo -&gt; Word32
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#bitMask"><span class="hs-identifier hs-var">bitMask</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008178"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">32</span></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">1</span></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-103"></span><span>          </span><span class="hs-keyword">in</span><span>    </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32 -&gt; FreeRegs
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-var">FreeRegs</span></a></span><span>
</span><span id="line-104"></span><span>                        </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008177"><span class="hs-identifier hs-var">g</span></a></span><span>
</span><span id="line-105"></span><span>                        </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008176"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32
forall a. Bits a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#.%26."><span class="hs-operator hs-var">.&amp;.</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008163"><span class="hs-identifier hs-var">mask</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-106"></span><span>                        </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008175"><span class="hs-identifier hs-var">d</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32
forall a. Bits a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#.%26."><span class="hs-operator hs-var">.&amp;.</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008150"><span class="hs-identifier hs-var">maskLow</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-107"></span><span>
</span><span id="line-108"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>
</span><span id="line-109"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc -&gt; FreeRegs
forall a. HasCallStack =&gt; String -&gt; SDoc -&gt; a
</span><a href="GHC.Utils.Outputable.html#pprPanic"><span class="hs-identifier hs-var">pprPanic</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;SPARC.FreeRegs.releaseReg: not allocating bad reg&quot;</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RealReg -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">RealReg
</span><a href="#local-6989586621681008179"><span class="hs-identifier hs-var">reg</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-110"></span><span>
</span><span id="line-111"></span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#allocateReg"><span class="hs-identifier hs-var">allocateReg</span></a></span><span> </span><span class="annot"><span class="annottext">Platform
</span><span class="hs-identifier">_</span></span><span>
</span><span id="line-112"></span><span>         </span><span id="local-6989586621681008148"><span class="annot"><span class="annottext">reg :: RealReg
</span><a href="#local-6989586621681008148"><span class="hs-identifier hs-var">reg</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Platform.Reg.html#RealRegPair"><span class="hs-identifier hs-type">RealRegPair</span></a></span><span> </span><span id="local-6989586621681008147"><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008147"><span class="hs-identifier hs-var">r1</span></a></span></span><span> </span><span id="local-6989586621681008146"><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008146"><span class="hs-identifier hs-var">r2</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-113"></span><span>             </span><span class="hs-special">(</span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-type">FreeRegs</span></a></span><span> </span><span id="local-6989586621681008145"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008145"><span class="hs-identifier hs-var">g</span></a></span></span><span> </span><span id="local-6989586621681008144"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008144"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span id="local-6989586621681008143"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008143"><span class="hs-identifier hs-var">d</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-114"></span><span>
</span><span id="line-115"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008147"><span class="hs-identifier hs-var">r1</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&gt;=</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">32</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008147"><span class="hs-identifier hs-var">r1</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&lt;=</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">63</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008147"><span class="hs-identifier hs-var">r1</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Integral a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Real.html#mod"><span class="hs-operator hs-var">`mod`</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">2</span></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">0</span></span><span>
</span><span id="line-116"></span><span>        </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008146"><span class="hs-identifier hs-var">r2</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&gt;=</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">32</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008146"><span class="hs-identifier hs-var">r2</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&lt;=</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">63</span></span><span>
</span><span id="line-117"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">let</span><span>   </span><span id="local-6989586621681008139"><span class="annot"><span class="annottext">mask1 :: Word32
</span><a href="#local-6989586621681008139"><span class="hs-identifier hs-var hs-var">mask1</span></a></span></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32
forall a. Bits a =&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#complement"><span class="hs-identifier hs-var">complement</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegNo -&gt; Word32
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#bitMask"><span class="hs-identifier hs-var">bitMask</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008147"><span class="hs-identifier hs-var">r1</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">32</span></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-118"></span><span>                </span><span id="local-6989586621681008135"><span class="annot"><span class="annottext">mask2 :: Word32
</span><a href="#local-6989586621681008135"><span class="hs-identifier hs-var hs-var">mask2</span></a></span></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32
forall a. Bits a =&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#complement"><span class="hs-identifier hs-var">complement</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegNo -&gt; Word32
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#bitMask"><span class="hs-identifier hs-var">bitMask</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008146"><span class="hs-identifier hs-var">r2</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">32</span></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-119"></span><span>          </span><span class="hs-keyword">in</span><span>
</span><span id="line-120"></span><span>                </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32 -&gt; FreeRegs
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-var">FreeRegs</span></a></span><span>
</span><span id="line-121"></span><span>                        </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008145"><span class="hs-identifier hs-var">g</span></a></span><span>
</span><span id="line-122"></span><span>                        </span><span class="hs-special">(</span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008144"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32
forall a. Bits a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#.%26."><span class="hs-operator hs-var">.&amp;.</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008139"><span class="hs-identifier hs-var">mask1</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32
forall a. Bits a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#.%26."><span class="hs-operator hs-var">.&amp;.</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008135"><span class="hs-identifier hs-var">mask2</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-123"></span><span>                        </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008143"><span class="hs-identifier hs-var">d</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32
forall a. Bits a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#.%26."><span class="hs-operator hs-var">.&amp;.</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008139"><span class="hs-identifier hs-var">mask1</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-124"></span><span>
</span><span id="line-125"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>
</span><span id="line-126"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc -&gt; FreeRegs
forall a. HasCallStack =&gt; String -&gt; SDoc -&gt; a
</span><a href="GHC.Utils.Outputable.html#pprPanic"><span class="hs-identifier hs-var">pprPanic</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;SPARC.FreeRegs.releaseReg: not allocating bad reg&quot;</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RealReg -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">RealReg
</span><a href="#local-6989586621681008148"><span class="hs-identifier hs-var">reg</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-127"></span><span>
</span><span id="line-128"></span><span>
</span><span id="line-129"></span><span>
</span><span id="line-130"></span><span class="hs-comment">-- | Release a register from allocation.</span><span>
</span><span id="line-131"></span><span class="hs-comment">--      The register liveness information says that most regs die after a C call,</span><span>
</span><span id="line-132"></span><span class="hs-comment">--      but we still don't want to allocate to some of them.</span><span>
</span><span id="line-133"></span><span class="hs-comment">--</span><span>
</span><span id="line-134"></span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#releaseReg"><span class="hs-identifier hs-type">releaseReg</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../ghc-boot/src/GHC.Platform.html#Platform"><span class="hs-identifier hs-type">Platform</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Platform.Reg.html#RealReg"><span class="hs-identifier hs-type">RealReg</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-type">FreeRegs</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-type">FreeRegs</span></a></span><span>
</span><span id="line-135"></span><span id="releaseReg"><span class="annot"><span class="annottext">releaseReg :: Platform -&gt; RealReg -&gt; FreeRegs -&gt; FreeRegs
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#releaseReg"><span class="hs-identifier hs-var hs-var">releaseReg</span></a></span></span><span> </span><span id="local-6989586621681008134"><span class="annot"><span class="annottext">Platform
</span><a href="#local-6989586621681008134"><span class="hs-identifier hs-var">platform</span></a></span></span><span>
</span><span id="line-136"></span><span>         </span><span id="local-6989586621681008133"><span class="annot"><span class="annottext">reg :: RealReg
</span><a href="#local-6989586621681008133"><span class="hs-identifier hs-var">reg</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Platform.Reg.html#RealRegSingle"><span class="hs-identifier hs-type">RealRegSingle</span></a></span><span> </span><span id="local-6989586621681008132"><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008132"><span class="hs-identifier hs-var">r</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-137"></span><span>        </span><span id="local-6989586621681008131"><span class="annot"><span class="annottext">regs :: FreeRegs
</span><a href="#local-6989586621681008131"><span class="hs-identifier hs-var">regs</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-type">FreeRegs</span></a></span><span> </span><span id="local-6989586621681008130"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008130"><span class="hs-identifier hs-var">g</span></a></span></span><span> </span><span id="local-6989586621681008129"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008129"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span id="local-6989586621681008128"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008128"><span class="hs-identifier hs-var">d</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-138"></span><span>
</span><span id="line-139"></span><span>        </span><span class="hs-comment">-- don't release pinned reg</span><span>
</span><span id="line-140"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool
</span><span class="hs-identifier hs-var">not</span></span><span> </span><span class="annot"><span class="annottext">(Bool -&gt; Bool) -&gt; Bool -&gt; Bool
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Platform -&gt; RegNo -&gt; Bool
</span><a href="GHC.Platform.Regs.html#freeReg"><span class="hs-identifier hs-var">freeReg</span></a></span><span> </span><span class="annot"><span class="annottext">Platform
</span><a href="#local-6989586621681008134"><span class="hs-identifier hs-var">platform</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008132"><span class="hs-identifier hs-var">r</span></a></span><span>
</span><span id="line-141"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FreeRegs
</span><a href="#local-6989586621681008131"><span class="hs-identifier hs-var">regs</span></a></span><span>
</span><span id="line-142"></span><span>
</span><span id="line-143"></span><span>        </span><span class="hs-comment">-- a general purpose reg</span><span>
</span><span id="line-144"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008132"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&lt;=</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">31</span></span><span>
</span><span id="line-145"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">let</span><span>   </span><span id="local-6989586621681008127"><span class="annot"><span class="annottext">mask :: Word32
</span><a href="#local-6989586621681008127"><span class="hs-identifier hs-var hs-var">mask</span></a></span></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; Word32
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#bitMask"><span class="hs-identifier hs-var">bitMask</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008132"><span class="hs-identifier hs-var">r</span></a></span><span>
</span><span id="line-146"></span><span>          </span><span class="hs-keyword">in</span><span>    </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32 -&gt; FreeRegs
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-var">FreeRegs</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008130"><span class="hs-identifier hs-var">g</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32
forall a. Bits a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#.%7C."><span class="hs-operator hs-var">.|.</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008127"><span class="hs-identifier hs-var">mask</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008129"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008128"><span class="hs-identifier hs-var">d</span></a></span><span>
</span><span id="line-147"></span><span>
</span><span id="line-148"></span><span>        </span><span class="hs-comment">-- a float reg</span><span>
</span><span id="line-149"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008132"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&gt;=</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">32</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008132"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&lt;=</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">63</span></span><span>
</span><span id="line-150"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">let</span><span>   </span><span id="local-6989586621681008123"><span class="annot"><span class="annottext">mask :: Word32
</span><a href="#local-6989586621681008123"><span class="hs-identifier hs-var hs-var">mask</span></a></span></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; Word32
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#bitMask"><span class="hs-identifier hs-var">bitMask</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008132"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">32</span></span><span class="hs-special">)</span><span>
</span><span id="line-151"></span><span>
</span><span id="line-152"></span><span>                </span><span class="hs-comment">-- the mask of the double this FP reg aliases</span><span>
</span><span id="line-153"></span><span>                </span><span id="local-6989586621681008112"><span class="annot"><span class="annottext">maskLow :: Word32
</span><a href="#local-6989586621681008112"><span class="hs-identifier hs-var hs-var">maskLow</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">if</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008132"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Integral a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Real.html#mod"><span class="hs-operator hs-var">`mod`</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">2</span></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">0</span></span><span>
</span><span id="line-154"></span><span>                                </span><span class="hs-keyword">then</span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; Word32
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#bitMask"><span class="hs-identifier hs-var">bitMask</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008132"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">32</span></span><span class="hs-special">)</span><span>
</span><span id="line-155"></span><span>                                </span><span class="hs-keyword">else</span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; Word32
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#bitMask"><span class="hs-identifier hs-var">bitMask</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008132"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">32</span></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">1</span></span><span class="hs-special">)</span><span>
</span><span id="line-156"></span><span>          </span><span class="hs-keyword">in</span><span>    </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32 -&gt; FreeRegs
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-var">FreeRegs</span></a></span><span>
</span><span id="line-157"></span><span>                        </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008130"><span class="hs-identifier hs-var">g</span></a></span><span>
</span><span id="line-158"></span><span>                        </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008129"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32
forall a. Bits a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#.%7C."><span class="hs-operator hs-var">.|.</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008123"><span class="hs-identifier hs-var">mask</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-159"></span><span>                        </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008128"><span class="hs-identifier hs-var">d</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32
forall a. Bits a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#.%7C."><span class="hs-operator hs-var">.|.</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008112"><span class="hs-identifier hs-var">maskLow</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-160"></span><span>
</span><span id="line-161"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>
</span><span id="line-162"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc -&gt; FreeRegs
forall a. HasCallStack =&gt; String -&gt; SDoc -&gt; a
</span><a href="GHC.Utils.Outputable.html#pprPanic"><span class="hs-identifier hs-var">pprPanic</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;SPARC.FreeRegs.releaseReg: not releasing bad reg&quot;</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RealReg -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">RealReg
</span><a href="#local-6989586621681008133"><span class="hs-identifier hs-var">reg</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-163"></span><span>
</span><span id="line-164"></span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#releaseReg"><span class="hs-identifier hs-var">releaseReg</span></a></span><span> </span><span class="annot"><span class="annottext">Platform
</span><span class="hs-identifier">_</span></span><span>
</span><span id="line-165"></span><span>         </span><span id="local-6989586621681008111"><span class="annot"><span class="annottext">reg :: RealReg
</span><a href="#local-6989586621681008111"><span class="hs-identifier hs-var">reg</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Platform.Reg.html#RealRegPair"><span class="hs-identifier hs-type">RealRegPair</span></a></span><span> </span><span id="local-6989586621681008110"><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008110"><span class="hs-identifier hs-var">r1</span></a></span></span><span> </span><span id="local-6989586621681008109"><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008109"><span class="hs-identifier hs-var">r2</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-166"></span><span>             </span><span class="hs-special">(</span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-type">FreeRegs</span></a></span><span> </span><span id="local-6989586621681008108"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008108"><span class="hs-identifier hs-var">g</span></a></span></span><span> </span><span id="local-6989586621681008107"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008107"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span id="local-6989586621681008106"><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008106"><span class="hs-identifier hs-var">d</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-167"></span><span>
</span><span id="line-168"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008110"><span class="hs-identifier hs-var">r1</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&gt;=</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">32</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008110"><span class="hs-identifier hs-var">r1</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&lt;=</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">63</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008110"><span class="hs-identifier hs-var">r1</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Integral a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Real.html#mod"><span class="hs-operator hs-var">`mod`</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">2</span></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">0</span></span><span>
</span><span id="line-169"></span><span>        </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008109"><span class="hs-identifier hs-var">r2</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&gt;=</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">32</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008109"><span class="hs-identifier hs-var">r2</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&lt;=</span></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">63</span></span><span>
</span><span id="line-170"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">let</span><span>   </span><span id="local-6989586621681008103"><span class="annot"><span class="annottext">mask1 :: Word32
</span><a href="#local-6989586621681008103"><span class="hs-identifier hs-var hs-var">mask1</span></a></span></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; Word32
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#bitMask"><span class="hs-identifier hs-var">bitMask</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008110"><span class="hs-identifier hs-var">r1</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">32</span></span><span class="hs-special">)</span><span>
</span><span id="line-171"></span><span>                </span><span id="local-6989586621681008100"><span class="annot"><span class="annottext">mask2 :: Word32
</span><a href="#local-6989586621681008100"><span class="hs-identifier hs-var hs-var">mask2</span></a></span></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; Word32
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#bitMask"><span class="hs-identifier hs-var">bitMask</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008109"><span class="hs-identifier hs-var">r2</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo -&gt; RegNo -&gt; RegNo
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#-"><span class="hs-glyph hs-var">-</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><span class="hs-number">32</span></span><span class="hs-special">)</span><span>
</span><span id="line-172"></span><span>          </span><span class="hs-keyword">in</span><span>
</span><span id="line-173"></span><span>                </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32 -&gt; FreeRegs
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-var">FreeRegs</span></a></span><span>
</span><span id="line-174"></span><span>                        </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008108"><span class="hs-identifier hs-var">g</span></a></span><span>
</span><span id="line-175"></span><span>                        </span><span class="hs-special">(</span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008107"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32
forall a. Bits a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#.%7C."><span class="hs-operator hs-var">.|.</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008103"><span class="hs-identifier hs-var">mask1</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32
forall a. Bits a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#.%7C."><span class="hs-operator hs-var">.|.</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008100"><span class="hs-identifier hs-var">mask2</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-176"></span><span>                        </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008106"><span class="hs-identifier hs-var">d</span></a></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; Word32 -&gt; Word32
forall a. Bits a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/Data.Bits.html#.%7C."><span class="hs-operator hs-var">.|.</span></a></span><span> </span><span class="annot"><span class="annottext">Word32
</span><a href="#local-6989586621681008103"><span class="hs-identifier hs-var">mask1</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-177"></span><span>
</span><span id="line-178"></span><span>        </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>
</span><span id="line-179"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc -&gt; FreeRegs
forall a. HasCallStack =&gt; String -&gt; SDoc -&gt; a
</span><a href="GHC.Utils.Outputable.html#pprPanic"><span class="hs-identifier hs-var">pprPanic</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;SPARC.FreeRegs.releaseReg: not releasing bad reg&quot;</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RealReg -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">RealReg
</span><a href="#local-6989586621681008111"><span class="hs-identifier hs-var">reg</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-180"></span><span>
</span><span id="line-181"></span><span>
</span><span id="line-182"></span><span>
</span><span id="line-183"></span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#bitMask"><span class="hs-identifier hs-type">bitMask</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Word.html#Word32"><span class="hs-identifier hs-type">Word32</span></a></span><span>
</span><span id="line-184"></span><span id="bitMask"><span class="annot"><span class="annottext">bitMask :: RegNo -&gt; Word32
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#bitMask"><span class="hs-identifier hs-var hs-var">bitMask</span></a></span></span><span> </span><span id="local-6989586621681008099"><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008099"><span class="hs-identifier hs-var">n</span></a></span></span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Word32
</span><span class="hs-number">1</span></span><span> </span><span class="annot"><span class="annottext">Word32 -&gt; RegNo -&gt; Word32
forall a. Bits a =&gt; a -&gt; RegNo -&gt; a
</span><a href="../../base/src/Data.Bits.html#shiftL"><span class="hs-operator hs-var">`shiftL`</span></a></span><span> </span><span class="annot"><span class="annottext">RegNo
</span><a href="#local-6989586621681008099"><span class="hs-identifier hs-var">n</span></a></span><span>
</span><span id="line-185"></span><span>
</span><span id="line-186"></span><span>
</span><span id="line-187"></span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#showFreeRegs"><span class="hs-identifier hs-type">showFreeRegs</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#FreeRegs"><span class="hs-identifier hs-type">FreeRegs</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>
</span><span id="line-188"></span><span id="showFreeRegs"><span class="annot"><span class="annottext">showFreeRegs :: FreeRegs -&gt; String
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#showFreeRegs"><span class="hs-identifier hs-var hs-var">showFreeRegs</span></a></span></span><span> </span><span id="local-6989586621681008098"><span class="annot"><span class="annottext">FreeRegs
</span><a href="#local-6989586621681008098"><span class="hs-identifier hs-var">regs</span></a></span></span><span>
</span><span id="line-189"></span><span>        </span><span class="hs-glyph">=</span><span>  </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;FreeRegs\n&quot;</span></span><span>
</span><span id="line-190"></span><span>        </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;    integer: &quot;</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">[RealReg] -&gt; String
forall a. Show a =&gt; a -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">([RealReg] -&gt; String) -&gt; [RealReg] -&gt; String
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass -&gt; FreeRegs -&gt; [RealReg]
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#getFreeRegs"><span class="hs-identifier hs-var">getFreeRegs</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.Platform.Reg.Class.html#RcInteger"><span class="hs-identifier hs-var">RcInteger</span></a></span><span> </span><span class="annot"><span class="annottext">FreeRegs
</span><a href="#local-6989586621681008098"><span class="hs-identifier hs-var">regs</span></a></span><span class="hs-special">)</span><span>       </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;\n&quot;</span></span><span>
</span><span id="line-191"></span><span>        </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;      float: &quot;</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">[RealReg] -&gt; String
forall a. Show a =&gt; a -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">([RealReg] -&gt; String) -&gt; [RealReg] -&gt; String
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass -&gt; FreeRegs -&gt; [RealReg]
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#getFreeRegs"><span class="hs-identifier hs-var">getFreeRegs</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.Platform.Reg.Class.html#RcFloat"><span class="hs-identifier hs-var">RcFloat</span></a></span><span>   </span><span class="annot"><span class="annottext">FreeRegs
</span><a href="#local-6989586621681008098"><span class="hs-identifier hs-var">regs</span></a></span><span class="hs-special">)</span><span>       </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;\n&quot;</span></span><span>
</span><span id="line-192"></span><span>        </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;     double: &quot;</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">[RealReg] -&gt; String
forall a. Show a =&gt; a -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">([RealReg] -&gt; String) -&gt; [RealReg] -&gt; String
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass -&gt; FreeRegs -&gt; [RealReg]
</span><a href="GHC.CmmToAsm.Reg.Linear.SPARC.html#getFreeRegs"><span class="hs-identifier hs-var">getFreeRegs</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.Platform.Reg.Class.html#RcDouble"><span class="hs-identifier hs-var">RcDouble</span></a></span><span>  </span><span class="annot"><span class="annottext">FreeRegs
</span><a href="#local-6989586621681008098"><span class="hs-identifier hs-var">regs</span></a></span><span class="hs-special">)</span><span>       </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;\n&quot;</span></span><span>
</span><span id="line-193"></span></pre></body></html>